ag-grid-angular.ag-theme-material {
  .ag-pinned-right-header,
  .ag-pinned-right-cols-container {
    box-shadow: -4px 0 4px 1px rgba(224, 225, 233, 0.6);
    position: relative;
    z-index: 2;
  }
  .ag-pinned-left-header,
  .ag-pinned-left-cols-container {
    box-shadow: 4px 0 4px 1px rgba(224, 225, 233, 0.6);
    position: relative;
    z-index: 2;
  }
  .ag-center-cols-container {
    min-width: 100%;
  }
  .ag-header {
    background: #f2f3f5;
    border-radius: 2px 2px 0 0;
    border-bottom: 1px solid #e5e6eb;
    .ag-header-cell {
      padding: 0 16px;
    }
    .ag-header-cell-text {
      color: #1d2129;
      font-size: 14px;
      font-weight: 700;
    }
  }
  .ag-row {
    background: #fff;
    border-bottom: 1px solid #e5e6eb;
    .ag-cell {
      color: #4e5969;
      font-size: 14px;
      font-style: normal;
      padding: 0 16px;
    }
  }
  .ag-row-hover {
    background: #e6f1ff;
  }
  .ag-row-selected {
    background: #e6f1ff;
  }
  .ag-pinned-right-header,
  .ag-cell.ag-cell-first-right-pinned:not(.ag-cell-range-left):not(.ag-cell-range-single-cell) {
    border-left: 1px solid #e5e6eb;
  }
  .ag-pinned-left-header,
  .ag-cell.ag-cell-last-left-pinned:not(.ag-cell-range-right):not(.ag-cell-range-single-cell) {
    border-right: 1px solid #e5e6eb;
  }
  .ag-checkbox-input-wrapper {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    &:focus-within {
      box-shadow: none;
    }
    &:not(.ag-checked)::after {
      content: '';
      display: block;
      border-radius: 2px;
      border: 1px solid #e5e6eb;
      background: #fff;
      width: 100%;
      height: 100%;
    }
    &.ag-checked::after {
      color: #165dff;
    }
    &.ag-indeterminate::before {
      content: '';
      display: block;
      background: #165dff;
      width: 8px;
      height: 8px;
      position: absolute;
      z-index: 2;
      pointer-events: none;
    }
  }

  /* 排序 ---start */
  .ag-header-cell-label .ag-header-icon {
    font-family: iconfont;
    font-size: 14px;
    .ag-icon-asc,
    .ag-icon-desc,
    .ag-icon-none {
      background-image: none;
      font-family: iconfont;
      &:after {
        content: '\e716';
        display: flex;
        height: 50%;
        font-size: 12px;
        align-items: flex-start;
        position: relative;
        top: -5px;
      }

      &:before {
        content: '\e718';
        display: flex;
        height: 50%;
        font-size: 12px;
        align-items: flex-end;
        position: relative;
        bottom: -5px;
      }
    }
    .ag-icon-asc {
      &:after {
        color: #333333;
      }

      &:before {
        color: #aaaaaa;
      }
    }

    .ag-icon-desc {
      &:after {
        color: #aaaaaa;
      }

      &:before {
        color: #333333;
      }
    }

    .ag-icon-none {
      &:after {
        color: #aaaaaa;
      }

      &:before {
        color: #aaaaaa;
      }
    }
  }
}
